from Base import message, intersect, SS_VALID
from DRG import MDCG_DRG

def group(record):
  adrg_zd = []
  adrg_zd1 = []
  adrg_ss = ["40.2900x017","40.5900x010","40.5907","40.9x00x011","54.1901","54.2300x003","54.4x02","54.4x09","54.4x15","54.7301","54.9104"]
  adrg_ss1 = []
  dept_list = []

  if True and record.ssList and record.ssList[0] in adrg_ss:
    message('符合GD1入组条件，匹配规则：主手术匹配')

    if MDCG_DRG.GD19_group(record):
      return 'GD19'
        
    return 'GD1'
  else:
    return ''
    
